﻿<UserControl x:Class="CodeCounsel.SharePoint.RibbonDesigner.View.Ribbon" 
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:v="clr-namespace:CodeCounsel.SharePoint.RibbonDesigner.View"
             xmlns:vm="clr-namespace:CodeCounsel.SharePoint.RibbonDesigner.ViewModel;assembly=CodeCounsel.SharePoint.RibbonDesigner"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:t="clr-namespace:CodeCounsel.SharePoint.RibbonDesigner.View.TypeConverters"
             mc:Ignorable="d" VerticalAlignment="Top" d:DesignHeight="100"
             d:DesignWidth="500"
             FocusManager.IsFocusScope="True">
    <UserControl.Resources>
        <t:ResourceConverter x:Key="resourceConverter" />
    </UserControl.Resources>
    <TabControl ItemsSource="{Binding Tabs}" BorderThickness="1" SelectedItem="{Binding SelectedTab}">
        <TabControl.BorderBrush>
            <LinearGradientBrush EndPoint="1,0" StartPoint="0,0">
                <GradientStop Color="#FF848E94" Offset="0" />
                <GradientStop Color="#FF848E94" Offset="1" />
                <GradientStop Color="#FFB5BABD" Offset="0.85" />
                <GradientStop Color="#FFB5BABD" Offset="0.15" />
            </LinearGradientBrush>
        </TabControl.BorderBrush>
        <TabControl.ItemTemplate>
            <DataTemplate>
                <TextBlock Text="{Binding Title, Converter={StaticResource resourceConverter}}" />
            </DataTemplate>
        </TabControl.ItemTemplate>
    </TabControl>
</UserControl>
